{template 'header'}
{template 'autoHeader','auto'}
<!--正文 begin-->
<div class="maintain-main layout960">
	<ul id="maintainNav" class="auto-maintain-list fn-clear">
		{if $maintainHas}
        {php $first=false;}
		{else}
		{php $first=true;}
		{/if}
		{loop $maintainList $mt}
		<li{if $first||$mt[armid]==$modelId} class="selected"{php $first=false;}{/if} data-alias="alias_{$mt[arbid]}_{$mt[arcid]}_{$mt[armid]}"><a href="javascript:void(0);">{$mt[title]}</a></li>
        {/loop}
	</ul>
	<div id="maintainDetail" class="auto-maintain-detail">
		{if $maintainHas}
		{php $first=false;}
		{else}
		{php $first=true;}
		{/if}
		{if $maintainList}
		{loop $maintainList $mt}
		<div {if $first||$mt[armid]==$modelId}{php $first=false;}{else}style="display:none;"{/if} id="alias_{$mt[arbid]}_{$mt[arcid]}_{$mt[armid]}">
			{$mt[content]}
		</div>
		{/loop}
		{else}
		<!--{template 'noauto', 'message'}-->
		{/if}
	</div>
</div>
<script type="text/javascript">
    seajs.use(['$'],function($){
        var $maintainNav = $("ul#maintainNav").find("li"),
                $maintainDetail = $("div#maintainDetail").children("div");
        $maintainNav.each(function(index){
            $(this).click(function(){
                $(this).addClass("selected").siblings().removeClass("selected");
                $maintainDetail.eq(index).show().siblings().hide();
            });
        })
    })
</script>
<!--正文 end-->
{template 'footer'}